package com.example.demo.mapper;

import com.example.demo.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import org.apache.ibatis.annotations.Mapper;


/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Admin
 * Date: 2023-03-19
 * Time: 16:33
 */

@Mapper
public interface UserMapper {


    //用户注册
    public int add(@Param("username")String username,@Param("password")String password);

    //用户登录
    public UserInfo login(@Param("username")String username,@Param("password")String password);

}
